package cn.bj.yu.single;

/**
 * @author 周宇
 * @create 2020-08-16 2:44
 * 静态内部类
 */
public class Holder {
    private Holder() {
    }

    public static Holder getInstance() {
        return InnerClass.holder;
    }

    //今天内部类
    private static class InnerClass {
        private static final Holder holder = new Holder();
    }
}
